﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Gui.Scan
{
    class Scanner
    {
        static CodeScanner codeScanner = new CodeScanner();
        internal static void Start()
        {
            codeScanner.Start();
        }

        internal static void Stop()
        {
            codeScanner.Stop();
        }


        internal static void AddValidCodeHandler(CodeScanner.ScanerDelegate handler)
        {
            codeScanner.ValidScanCodeEvent += handler;
        }

        internal static void RemoveValidCodeHandler(CodeScanner.ScanerDelegate handler)
        {
            codeScanner.ValidScanCodeEvent -= handler;
        }

        internal static void AddInValidCodeHandler(CodeScanner.ScanerDelegate handler)
        {
            codeScanner.InValidScanCodeEvent += handler;
        }

        internal static void RemoveInValidCodeHandler(CodeScanner.ScanerDelegate handler)
        {
            codeScanner.InValidScanCodeEvent -= handler;
        }
    }
}
